package g4p.newg4p;

import g4p_controls.G4P;
import g4p_controls.GButton;
import g4p_controls.GWindow;
import processing.core.PApplet;

public class WindowControl_Test extends PApplet {
	
	GWindow window;
	GButton btnIn2ndWindow, btnInSketchWindow;
	
	public void setup(){
		size(300,300);
		window = new GWindow(this, "Test Window", 500, 100, 600, 400, false, null);
		window.setActionOnClose(G4P.CLOSE_WINDOW);
		btnIn2ndWindow = new GButton(window.papplet, 20,10,100,20,"TEST");
		btnInSketchWindow = new GButton(this, 20,10,100,20,"TEST");	
	}

	public void draw(){
		background(255,200,255);
	}
	
	public void handleButtonEvents(GButton button) {
//		if(button.eventType.equals(GEvent.CLICKED))
//			System.out.println("MOUSE CLICKED " + button.eventType);
	}

}
